import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/style/reset.scss'
import '@/style/iconfont.scss'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

Vue.use(MintUI)

Vue.config.productionTip = false
// 创建全局过滤器
Vue.filter('changeTime', function (date) {
  let newDate = new Date(date)
  let y = newDate.getFullYear()
  let m = newDate.getMonth() + 1
  let d = newDate.getDate()
  return y + '/' + m + '/' + d
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
